﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
using JT.Domain;


namespace JT.WEB.Service
{
    public interface IUserCenter
    {
        // List<Message> GetMessages();
        Task<int> AddMessage(Message message);
        IEnumerable<Message> GetUnreadMS();
        //int GetUnReadMSCount();
        Task<int> ReadAsync(EMSLevel eMSLevel);
        int GetUnReadMSCount();
        IEnumerable<Message> GetMessages(Expression<Func<Message, bool>> where);
    }
}
